]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme/calendar: Use em instead of px for calendar day sizes
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 26 Apr 2022 16:45:40 +0000 (18:45 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 29 Apr 2022 18:51:42 +0000 (18:51 +0000)
The layout manager of the calendar/notifications popup is using the
calendar width to determine the width of the whole right area of the
calendar popup. When enabling large text, this means the cards used for
world clocks, weather etc. get larger, while the calender doesn't get
larger, leading to the cards getting clipped.

Make sure the calendar grows in size just as the cards do when large
text is enabled and define its size in em's instead of pixels.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5392

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2282>

data/theme/gnome-shell-sass/widgets/_calendar.scss

index 8d03ab90379f4877e60dfe48f7c2453a2cf47315..465dc053d870dc0370558f090ff30c7ce97cf4c0 100644 (file)
@@ -60,7 +60,7 @@
     }
   }
 
-  $calendar_day_size: 32px;
+  $calendar_day_size: 3em;
 
   .calendar-day-base {
     text-align: center;